//
//  TopBar.h
//  Dolphin
//
//  Created by Handymood on 11-6-7.
//  Copyright 2011 __Hanydmood__. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "SimpleAudioPlayer.h"
#import "UIToogleButton.h"
#import "UpToolBarInfo.h"
#import "IPhone_IPad_Judge.h"
#import "UIImageLayer.h"

@class SimpleAudioPlayer;
@class UIToogleButton;
@class UpToolBarInfo;
@class GradientButton;
@class IPhone_IPad_Judge;
@class UIImageLayer;

@interface TopBar : UIView 
{
    UIToolbar *upsideToolBar;
    SimpleAudioPlayer *bgSoundPlayer;
    UIToogleButton *slidePlayToogleButton;
    UITextField *indexTextfield;

    ImageUIButton *homeButton;
    ImageUIButton *twitterButton;
    ImageUIButton *facebookButton;
    ImageUIButton *shareButton;
    ImageUIButton *categoryButton;
    
    UIImageLayer *newTopBg;
    
    NSString *home_link;
    NSString *facebook_link;
    NSString *twitter_link;
    NSString *cur_link;
    
    int openType;
}

-(void) addAudio:(NSString *)audioPath autoPlayAtInit:(BOOL) autoPlayInit;
-(void) addSlideshowPlayButton:(BOOL) autoPlay;
-(void) initWithToolBarInfo:(UpToolBarInfo *)upToolBarInfo;
-(void) setAutoPlayStatus:(BOOL) autoPlay;
-(void) layoutAdjustWithOrientation:(UIInterfaceOrientation)interfaceOrientation
                                    isFullScreen:(BOOL)fullscreen;
-(void) buttonSizeAdjust:(ImageUIButton *)imageUIButton;
-(void) updateIndex:(int) curIndex _totalIndex:(int) totalIndex;
-(void) reset;
-(BOOL) musicOn;
-(BOOL) slideOnAutoPlay;

-(void) manuallyMusicOn;
-(void) manuallyMusicOff;

-(void) manuallyPlaySlide;
-(void) manuallyPauseSlide;

-(void) displayAlbumBtn;

@property(nonatomic,retain) NSString *cur_link;

@end
